package com.lion.ball.modules.orderfood.web.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.beans.factory.annotation.Autowired;
import com.lion.common.spring.business.base.BaseCrudController;
import com.lion.ball.modules.orderfood.domain.entity.OfdFoodSpuEntity;
import com.lion.ball.modules.orderfood.web.model.params.create.OfdFoodSpuCreateParam;
import com.lion.ball.modules.orderfood.web.model.params.update.OfdFoodSpuUpdateParam;
import com.lion.ball.modules.orderfood.web.model.params.search.OfdFoodSpuSearchParam;
import com.lion.ball.modules.orderfood.web.model.params.order.OfdFoodSpuOrderParam;
import com.lion.ball.modules.orderfood.web.model.results.OfdFoodSpuResult;
import com.lion.ball.modules.orderfood.dao.repository.OfdFoodSpuRepository;
import com.lion.ball.modules.orderfood.service.assistants.converters.OfdFoodSpuConverter;
import com.lion.ball.modules.orderfood.service.def.OfdFoodSpuService;
import com.lion.ball.modules.orderfood.web.api.OfdFoodSpuApi;

/**
 * @author Chris Chan
 * Create on 2025-10-18 13:33
 * Use for: 食品SPU 接口实现
 * Explain:
 * 
 */
@RestController
@RequestMapping("ofd/food/spu")
public class OfdFoodSpuController implements OfdFoodSpuApi, BaseCrudController<
        OfdFoodSpuEntity,
        OfdFoodSpuCreateParam,
        OfdFoodSpuUpdateParam,
        OfdFoodSpuSearchParam,
        OfdFoodSpuOrderParam,
        OfdFoodSpuResult,
        OfdFoodSpuRepository,
        OfdFoodSpuConverter,
        OfdFoodSpuService
        > {

    @Autowired
    OfdFoodSpuService ofdFoodSpuService;

    @Override
    public OfdFoodSpuService getService() {
        return ofdFoodSpuService;
    }
}